﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace CPPEI.Coolzon.Designer.Views
{
    public static class PublishToFileSystemCommand
    {
        public static void Executed(object sender, ExecutedRoutedEventArgs e)
        {
            PublishToFileSystemWindow window = new PublishToFileSystemWindow();
            window.ShowDialog();
        }
        public static void CanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            if(UIContext.Current.CurrentSolution != null)
            {
                e.CanExecute = true;
            }
            else
            {
                e.CanExecute = false;
            }
        }
    }
}
